package com.example.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.springboot.entity.User;

public interface UserMapper extends BaseMapper<User>
{
    //一对多查询 mybatieplus会自动根据page的参数进行分页，在xml文件中根据sql语句，将查询结果封装Page对象
    Page<User> findPage(Page<User> objectPage);
}
